package org.blogwu.learn.designpattern.chapter9.v1;

public class Test {
    public static void main(String[] args) {
        Mail mail = new Mail();
        mail.setContent("初始化模块");
        for (int i = 0; i < 10; i++) {
            mail.setName("姓名" + i);
            mail.setEmailAddress("姓名" + i + "@imooc.com");
            mail.setContent("恭喜你，怀孕了");
            MailUtil.sendMail(mail);
        }
        //这儿的初始化模板已经变了
        MailUtil.saveOriginMailRecord(mail);

    }
}
